package com.zh.service;


import org.apache.commons.lang3.StringUtils;

public interface I18NEnum {
    String getScript();

    default String getMessage() {
        return this.getInner();
    }

    default String getName() {
        return this.getInner();
    }

    default String getInner() {
        String script = this.getScript();
        String[] scripts = StringUtils.split(script, "|");
        if (scripts.length == 0) {
            return "I18NEnum Pattern Error , Use \"|\" to split script";
        } else {
            StringBuilder message = new StringBuilder();
            String[] var4 = scripts;
            int var5 = scripts.length;

            for(int var6 = 0; var6 < var5; ++var6) {
                String s = var4[var6];
//                message.append(I18NMessageUtils.getMessage(s, new Object[0]));
            }

            return message.toString();
        }
    }
}

